using System;

namespace F2Enum.Converters
{
    public class ShortConverter : ConverterBase<short>
    {
        public override short Convert(string value)
        {
            short result;
            if (short.TryParse(value, out result))
                return result;
            throw new InvalidCastException("The Value Format Is Incorrect");
        }
    }
}